package com.lyw.springCloud.api;

import com.lyw.springCloud.api.impl.PaymentServiceImpl;
import com.lyw.springCloud.entities.Payment;
import com.lyw.springCloud.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Auther liyawei
 * @Date 2022/5/18 19:56
 */

@FeignClient(value = "nacos-payment-provider", fallback = PaymentServiceImpl.class)
public interface PaymentService {

    @GetMapping(value = "/paymentSQL/{id}")
    public CommonResult<Payment> paymentSQL(@PathVariable("id") Long id);
}
